package com.springboot.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

@Data
public class ForgetPwdDTO {
    private String username;      //登录用户名

    @NotEmpty(message = "邮箱地址不能为空！")
    private String email;

    @NotEmpty(message = "手机号码不能为空！")
    private String tel;

    @NotEmpty(message = "新密码不能为空！")
    @Size(min = 6, max = 16, message = "新密码长度必须在6到16之间！")
    private String newPassword;
}
